%
%  =======================================================================
%  ····Y88b···d88P················888b·····d888·d8b·······················
%  ·····Y88b·d88P·················8888b···d8888·Y8P·······················
%  ······Y88o88P··················88888b·d88888···························
%  ·······Y888P··8888b···88888b···888Y88888P888·888·88888b·····d88b·······
%  ········888······"88b·888·"88b·888·Y888P·888·888·888·"88b·d88P"88b·····
%  ········888···d888888·888··888·888··Y8P··888·888·888··888·888··888·····
%  ········888··888··888·888··888·888···"···888·888·888··888·Y88b·888·····
%  ········888··"Y888888·888··888·888·······888·888·888··888··"Y88888·····
%  ·······························································888·····
%  ··························································Y8b·d88P·····
%  ···························································"Y88P"······
%  =======================================================================
% 
%  -----------------------------------------------------------------------
% Author       : 焱铭
% Date         : 2024-02-29 18:22:48 +0800
% LastEditTime : 2024-02-29 18:36:32 +0800
% Github       : https://github.com/YanMing-lxb/
% FilePath     : /PyTeXMK/tests/glossaries-test.tex
% Description  : 
%  -----------------------------------------------------------------------
%

\documentclass{article}
\usepackage{ctex}
\usepackage{glossaries}

% 定义符号
\newglossaryentry{pi}{
    name={\ensuremath{\pi}},
    description={圆周率},
    sort={pi}
}

\newglossaryentry{alpha}{
    name={\ensuremath{\alpha}},
    description={阿尔法},
    sort={alpha}
}

\newglossaryentry{beta}{
    name={\ensuremath{\beta}},
    description={贝塔},
    sort={beta}
}

% 生成符号索引
\makeglossaries

\begin{document}

\section{测试文档}

在这个文档中，我们将使用一些数学符号来进行演示。例如，我们可以使用符号 \gls{pi} 表示圆周率。

另外，我们也可以使用符号 \gls{alpha} 和 \gls{beta} 分别表示阿尔法和贝塔。

\section*{符号索引}
\printglossaries

\end{document}

